package astri.pdcontrol;

import android.app.Application;
import astri.pdcontrol.client.PDControlClient;

public class ConnectApplication extends Application {

	private static PDControlClient client=null;
	public static PDControlClient getclient(){
		return client;
	}
	public boolean setClient(String serverIP,int serverPort){
		testApp app = new testApp();
		client = new PDControlClient(3000,3000,app.new MyListener());
		client.startService();
		return client.connectTo(serverIP, serverPort);
	}
	
}
